package com.qsmx.store.app.main.system;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.qsmx.store.app.R;
import com.qsmx.store.app.R2;
import com.qsmx.store.app.main.system.adapter.SystemCoinAddAndCleanAdapter;
import com.qsmx.store.core.delegates.AtmosDelegate;

import butterknife.BindView;

public class SystemCoinAddAndCleanDelegate extends AtmosDelegate {

    private SystemCoinAddAndCleanAdapter mAdapter;

    @BindView(R2.id.rlv_machine_info)
    RecyclerView rlvMachineInfo;

    @Override
    public Object setLayout() {
        return R.layout.delegate_system_coin_add_and_clean;
    }

    @Override
    public void onBindView(@Nullable Bundle savedInstanceState, View rootView) {

        initRecycler();

    }

    private void initRecycler() {

        mAdapter = new SystemCoinAddAndCleanAdapter(getContext());
        LinearLayoutManager manager = new LinearLayoutManager(getContext());

        rlvMachineInfo.setAdapter(mAdapter);
        rlvMachineInfo.setLayoutManager(manager);

    }
}
